**********************************************************************************************
set more off



/*
*instructions for outreg;
local instruct_ols "ctitle(OLS) dec(4)  auto(2) symbol(***,**,*) se"; 
local instruct_iv "ctitle(IV) dec(4)  auto(2) symbol(***,**,*) se addstat(First stage F, e(widstat))"; 
local instruct_iv_overid "ctitle(IV) dec(4)  auto(2) symbol(***,**,*)  se addstat(Overid,e(jp),First stage F, e(widstat))"; 
*/


********************************************************************; 
***     TABLE A3 Pre-Period Results -- IV          ; 
********************************************************************; 

*** Roads levels, 1980 & 1990

ivreg2 D_censuspop8290_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref D_censuspop8290_pref (road_1980_rays=road_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  replace
ivreg2 D_censuspop8290_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref D_censuspop8290_pref (road_1990_rays=road_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append

*** Railroads levels, 1980 & 1990

ivreg2 lcensuspop1990_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref lcensuspop1990_pref (rail_1980_rays=rail_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 lcensuspop1990_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref lcensuspop1990_pref (rail_1990_rays=rail_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append

gen lgdpsect2_1990_cp = log(gdpsect2_1990_cp)
ivreg2 lgdpsect2_1990_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref lcensuspop1990_pref (rail_1980_rays=rail_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 lgdpsect2_1990_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref lcensuspop1990_pref (rail_1990_rays=rail_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append

gen lgdpsect2_2010_cp = log(gdpsect2_2010_cp)
ivreg2 lgdpsect2_2010_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref lcensuspop2010_pref (rail_2010_rays=rail_1962_rays) if D0==1,  first ffirst robust cluster(province05)
outreg2 using "tableA3", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append


***** Same Regressions as Above, Excluding the West ********

ivreg2 D_censuspop8290_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref D_censuspop8290_pref (road_1980_rays=road_1962_rays) if D0==1 & west==0,  first ffirst robust cluster(province05)
ivreg2 D_censuspop8290_cp larea_cc90 larea_pf05 province_capitalPlus frac_highedu1982_pref share_emp_man1982_pref D_censuspop8290_pref (road_1990_rays=road_1962_rays) if D0==1 & west==0,  first ffirst robust cluster(province05)

